




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：03/20/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfprojectnode.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfprojectnode.entity.YfProjectNode;
import com.application.yfprojectnode.struts.form.YfProjectNodeForm;
import com.application.yfprojectnode.dao.YfProjectNodeDAO;
 /**
 * 
 * Description:YfProjectNodeService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 03/20/2012 
 * 
 */
public class YfProjectNodeService extends BaseService
{
	private YfProjectNodeDAO yfProjectNodeDAO;

	public YfProjectNodeDAO getYfProjectNodeDAO() {
		return this.yfProjectNodeDAO;
	}

	public void setYfProjectNodeDAO(YfProjectNodeDAO yfProjectNodeDAO) {
		this.yfProjectNodeDAO = yfProjectNodeDAO;
	}
        

        public YfProjectNode getYfProjectNode(YfProjectNode yfProjectNode) {
		return (YfProjectNode) this.getBaseDao().queryByPk(yfProjectNode, yfProjectNode.getId());
	}
	
	public Integer getAllCountYfProjectNode(YfProjectNodeForm yfProjectNodeForm){
		return this.yfProjectNodeDAO.getAllCountYfProjectNode(yfProjectNodeForm);
	}
	
	public List<YfProjectNode> searchYfProjectNode(YfProjectNodeForm yfProjectNodeForm, PageBean pageBean) throws Exception {
		List<YfProjectNode> yfProjectNodeList = (List) this.yfProjectNodeDAO.searchYfProjectNode(yfProjectNodeForm, pageBean);
		return yfProjectNodeList;
	}
        
        public void deleteYfProjectNodes(YfProjectNodeForm yfProjectNodeForm){
	   this.yfProjectNodeDAO.deleteYfProjectNodes(yfProjectNodeForm);	 
	}
}
